using System;
using System.Collections.Generic;
using hao_Common.Dapper.Repository;
using hao_Model.Enums;

namespace hao_Model
{
    /// <summary>
    /// 商品实体，表示二手好物的基本信息
    /// </summary>
    public class Product : ISoftDelete
    {
        /// <summary>
        /// 商品唯一标识
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 发布者用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 商品标题，30字以内
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 商品描述，200字以内
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 商品分类名称
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// 售价（单位：元）
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 原价（单位：元，可选）
        /// </summary>
        public decimal? OriginPrice { get; set; }

        /// <summary>
        /// 交易方式
        /// </summary>
        public DeliveryMethod DeliveryMethod { get; set; }

        /// <summary>
        /// 议价选项
        /// </summary>
        public BargainOption BargainOption { get; set; }

        /// <summary>
        /// 商品位置信息
        /// </summary>
        public string Location { get; set; }

        /// <summary>
        /// 是否自动续费
        /// </summary>
        public bool AutoRenew { get; set; }

        /// <summary>
        /// 商品发布时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 软删除标记
        /// </summary>
        public bool IsDeleted { get; set; } // 软删除标记
    }
}